<script>
import config from './config'
import store from '@/store'
import { getToken } from '@/utils/auth'
import storage from '@/utils/storage'
const manifestJson = require('@/manifest.json') // 导入manifest.json文件
manifestJson.h5.devServer.proxy['/api'].target = config.baseUrl
export default {
  onLaunch: function() {
    this.initApp()
    uni.hideTabBar()
  },
  onShow: function() {
    console.log('App Show')
  },
  methods: {
    // 初始化应用
    initApp() {
      // 初始化应用配置
      this.initConfig()
      // 检查用户登录状态

      //#ifdef H5
      this.checkLogin()
      //#endif

      //#ifdef APP-PLUS
      console.log('App')
      //#endif

      //#ifdef MP-WEIXIN
      console.log('微信')
      //#endif
    },
    initConfig() {
      this.globalData.config = config
    },
    checkLogin() {}
  }
}
</script>

<style lang="scss">
img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
@import '@/static/scss/index.scss';
@import 'uview-ui/index.scss';
</style>